<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.6"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespacesyslog4cj.html">syslog4cj</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl.html">impl</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message.html">message</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message_1_1modifier.html">modifier</a></li><li class="navelem"><a class="el" href="namespacesyslog4cj_1_1impl_1_1message_1_1modifier_1_1text.html">text</a></li><li class="navelem"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html">SuffixSyslogMessageModifier</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier Class Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.png" usemap="#syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier_map" alt=""/>
  <map id="syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier_map" name="syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier_map">
<area href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html" alt="syslog4cj.common.SyslogMessageModifierIF" shape="rect" coords="0,0,388,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad6c03a18445266adf22ca77fac231761"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#ad6c03a18445266adf22ca77fac231761">init</a> ()</td></tr>
<tr class="separator:ad6c03a18445266adf22ca77fac231761"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2270c315fb61e3f279ef0ed514918d87"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a2270c315fb61e3f279ef0ed514918d87">init</a> (String suffix)</td></tr>
<tr class="separator:a2270c315fb61e3f279ef0ed514918d87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75f2a94558cd0022e88ecdfcd0b7e575"><td class="memItemLeft" align="right" valign="top">public&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a75f2a94558cd0022e88ecdfcd0b7e575">init</a> (String suffix, String delimiter)</td></tr>
<tr class="separator:a75f2a94558cd0022e88ecdfcd0b7e575"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05f0983ee28e12f9fc3ebcfdbee5409e"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a05f0983ee28e12f9fc3ebcfdbee5409e">getSuffix</a> ()</td></tr>
<tr class="separator:a05f0983ee28e12f9fc3ebcfdbee5409e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17af1012e2ef7ec3dc5869485afc0e6e"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a17af1012e2ef7ec3dc5869485afc0e6e">setSuffix</a> (String suffix)</td></tr>
<tr class="separator:a17af1012e2ef7ec3dc5869485afc0e6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a861f7859bca81d6f9b2236d66d845939"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a861f7859bca81d6f9b2236d66d845939">modify</a> (<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a> syslog, Int64 facility, Int64 level, String message):String</td></tr>
<tr class="separator:a861f7859bca81d6f9b2236d66d845939"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a696bd7e4fcecc9366bfffcd67ef0db3f"><td class="memItemLeft" align="right" valign="top">public func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a696bd7e4fcecc9366bfffcd67ef0db3f">verify</a> (String message):Bool</td></tr>
<tr class="separator:a696bd7e4fcecc9366bfffcd67ef0db3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f65d76f12bd3b028d7fefb6d1b9a111"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a8f65d76f12bd3b028d7fefb6d1b9a111">modify</a> (<a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogIF.html">SyslogIF</a> syslog, Int64 facility, Int64 level, String message):String</td></tr>
<tr class="separator:a8f65d76f12bd3b028d7fefb6d1b9a111"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a581a1f2aee3c0fbd34270775e1aab851"><td class="memItemLeft" align="right" valign="top">func&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a581a1f2aee3c0fbd34270775e1aab851">verify</a> (String message):Bool</td></tr>
<tr class="separator:a581a1f2aee3c0fbd34270775e1aab851"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ad899863ca00f893f41ab3185cd04b68b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#ad899863ca00f893f41ab3185cd04b68b">var suffix</a> = &quot;&quot;</td></tr>
<tr class="separator:ad899863ca00f893f41ab3185cd04b68b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9335fb3325410d4120ced15e9d2c73e9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsyslog4cj_1_1impl_1_1message_1_1modifier_1_1text_1_1SuffixSyslogMessageModifier.html#a9335fb3325410d4120ced15e9d2c73e9">var delimiter</a> = &quot; &quot;</td></tr>
<tr class="separator:a9335fb3325410d4120ced15e9d2c73e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>后缀日志消息修饰器<br  />
 为日志消息添加统一后缀，支持自定义分隔符， 适用于添加日志来源、环境标识等固定尾部信息。 </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad6c03a18445266adf22ca77fac231761" name="ad6c03a18445266adf22ca77fac231761"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6c03a18445266adf22ca77fac231761">&#9670;&#160;</a></span>init() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.init </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建空后缀修饰器（实际不修改消息） </p>

</div>
</div>
<a id="a2270c315fb61e3f279ef0ed514918d87" name="a2270c315fb61e3f279ef0ed514918d87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2270c315fb61e3f279ef0ed514918d87">&#9670;&#160;</a></span>init() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.init </td>
          <td>(</td>
          <td class="paramname"><em>suffix</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建带指定后缀的修饰器（使用默认空格分隔符）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">suffix</td><td>要添加的后缀字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a75f2a94558cd0022e88ecdfcd0b7e575" name="a75f2a94558cd0022e88ecdfcd0b7e575"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75f2a94558cd0022e88ecdfcd0b7e575">&#9670;&#160;</a></span>init() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.init </td>
          <td>(</td>
          <td class="paramname"><em>suffix</em>:&#160;</td>
          <td class="paramtype">String, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>delimiter</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>创建带指定后缀和分隔符的修饰器</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">suffix</td><td>要添加的后缀字符串 </td></tr>
    <tr><td class="paramname">delimiter</td><td>消息与后缀间的分隔符（非空） </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a05f0983ee28e12f9fc3ebcfdbee5409e" name="a05f0983ee28e12f9fc3ebcfdbee5409e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05f0983ee28e12f9fc3ebcfdbee5409e">&#9670;&#160;</a></span>getSuffix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.getSuffix </td>
          <td>(</td>
          <td class="paramtype"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>获取当前配置的后缀</p>
<dl class="section return"><dt>Returns</dt><dd>后缀字符串 </dd></dl>

</div>
</div>
<a id="a861f7859bca81d6f9b2236d66d845939" name="a861f7859bca81d6f9b2236d66d845939"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a861f7859bca81d6f9b2236d66d845939">&#9670;&#160;</a></span>modify()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.modify </td>
          <td>(</td>
          <td class="paramname"><em>syslog</em>:&#160;</td>
          <td class="paramtype">SyslogIF, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>facility</em>:&#160;</td>
          <td class="paramtype">Int64, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>level</em>:&#160;</td>
          <td class="paramtype">Int64, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">String&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>: String </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>修改日志消息：添加后缀</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">syslog</td><td>Syslog实例 </td></tr>
    <tr><td class="paramname">facility</td><td>设施类型 </td></tr>
    <tr><td class="paramname">level</td><td>日志级别 </td></tr>
    <tr><td class="paramname">message</td><td>原始日志消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>添加后缀后的消息（格式：原始消息 + 分隔符 + 后缀）</dd></dl>
<dl class="section note"><dt>Note</dt><dd>若后缀为空或空白字符串，则返回原始消息 </dd></dl>

<p>Implements <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a8f65d76f12bd3b028d7fefb6d1b9a111">syslog4cj.common.SyslogMessageModifierIF</a>.</p>

</div>
</div>
<a id="a17af1012e2ef7ec3dc5869485afc0e6e" name="a17af1012e2ef7ec3dc5869485afc0e6e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17af1012e2ef7ec3dc5869485afc0e6e">&#9670;&#160;</a></span>setSuffix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.setSuffix </td>
          <td>(</td>
          <td class="paramname"><em>suffix</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置新的后缀</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">suffix</td><td>新的后缀字符串 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a696bd7e4fcecc9366bfffcd67ef0db3f" name="a696bd7e4fcecc9366bfffcd67ef0db3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a696bd7e4fcecc9366bfffcd67ef0db3f">&#9670;&#160;</a></span>verify()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">public func syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.verify </td>
          <td>(</td>
          <td class="paramname"><em>message</em>:&#160;</td>
          <td class="paramtype">String</td><td>)</td>
          <td>: Bool </td>
        </tr>
      </table>
</div><div class="memdoc">
<p>消息验证（始终通过）</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>待验证消息 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>总是返回 true </dd></dl>

<p>Implements <a class="el" href="interfacesyslog4cj_1_1common_1_1SyslogMessageModifierIF.html#a581a1f2aee3c0fbd34270775e1aab851">syslog4cj.common.SyslogMessageModifierIF</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a9335fb3325410d4120ced15e9d2c73e9" name="a9335fb3325410d4120ced15e9d2c73e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9335fb3325410d4120ced15e9d2c73e9">&#9670;&#160;</a></span>var delimiter</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.var delimiter = &quot; &quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>消息内容与后缀间的分隔符（默认空格） </p>

</div>
</div>
<a id="ad899863ca00f893f41ab3185cd04b68b" name="ad899863ca00f893f41ab3185cd04b68b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad899863ca00f893f41ab3185cd04b68b">&#9670;&#160;</a></span>var suffix</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">syslog4cj.impl.message.modifier.text.SuffixSyslogMessageModifier.var suffix = &quot;&quot;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>要添加的后缀字符串 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/impl/message/modifier/text/<a class="el" href="suffix__syslog__message__modifier_8cj.html">suffix_syslog_message_modifier.cj</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.6
</small></address>
</body>
</html>
